#ifndef PROMSMODEL_H
#define PROMSMODEL_H

#include <QSqlQueryModel>
#include <QSqlQuery>

class PromsModel : public QSqlQueryModel
{
    Q_OBJECT
public:
    explicit PromsModel( QObject *parent = 0);
    void setFams(QSqlDatabase db, int fams, bool actif = true, const QStringList &l = QStringList());

    static PromsModel *allProms(QSqlDatabase db, QObject *parent = 0);

    QVariant headerData(int section, Qt::Orientation orientation,
                            int role = Qt::DisplayRole) const;

signals:

public slots:

};

#endif // PROMSMODEL_H
